package org.ytor.core.sysapi.monitor.resp;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * created by yangtong on 2025/7/6 20:57:25
 * <br/>
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "数据库连接池信息")
public class DatabaseInfoRealtimeResp {
    @Schema(description = "数据源类型", example = "HikariCP")
    private String dataSourceClass;

    @Schema(description = "活跃连接数", example = "5")
    private Integer activeConnections;

    @Schema(description = "空闲连接数", example = "10")
    private Integer idleConnections;

    @Schema(description = "最大连接数", example = "20")
    private Integer maxConnections;

    @Schema(description = "最小连接数", example = "5")
    private Integer minConnections;
}
